package com.javasm.crm.mapper.sell;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.javasm.crm.domin.vo.SellOutRepositoryRecordVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author：liuqizhe
 * @Version：1.0
 * @Date：2021/7/15-20:51
 * @Since:jdk1.8
 * @Description:TODO
 */
@Repository
public interface SellOutRepositoryRecordVOMapper extends BaseMapper<SellOutRepositoryRecordVO> {
    @Select("select r.*,s.order_state from repository_sell_out_order r left join sell_state s on r.sell_code = s.sell_code"+" ${ew.customSqlSegment}")
    List<SellOutRepositoryRecordVO> getSellOutRepositoryRecordVO(Page<SellOutRepositoryRecordVO> page, @Param(Constants.WRAPPER) QueryWrapper<SellOutRepositoryRecordVO> queryWrapper);
}
